package net.jalbum.filters;

public class MultipleResizableBoxControl extends MultipleResizableObjectControl {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8539336323819714541L;
	protected MultipleResizableBoxPanel multipleResizableBoxPanel;
	protected double boxWidth, boxHeight;

	public MultipleResizableBoxControl() {
	}

	public MultipleResizableBoxControl(final MultipleResizableBoxPanel multipleResizableBoxPanel) {
		this.multipleResizableBoxPanel = multipleResizableBoxPanel;
		this.init(multipleResizableBoxPanel);
	}

	protected void addBoxControls() {
		// nothing here yet
	}

	protected void init(final MultipleResizableBoxPanel multipleResizableBoxPanel) {
		this.multipleResizableBoxPanel = multipleResizableBoxPanel;

		// register itself with RotationPanel
		multipleResizableBoxPanel.setMultipleResizableBoxControl(this);

		super.init(multipleResizableBoxPanel);
	}

	@Override
	public void update(final double x1, final double y1, final double boxWidth, final double boxHeight) {
		this.X1 = x1;
		this.X1 = y1;

		this.boxWidth = boxWidth;
		this.boxHeight = boxHeight;
	}

	public MultipleResizableBoxPanel getMultipleResizableBoxPanel() {
		return this.multipleResizableBoxPanel;
	}

	public void setMultipleResizableBoxPanel(final MultipleResizableBoxPanel multipleResizableBoxPanel) {
		this.multipleResizableBoxPanel = multipleResizableBoxPanel;
	}

	public double getBoxWidth() {
		return this.boxWidth;
	}

	public void setBoxWidth(final int boxWidth) {
		this.boxWidth = boxWidth;
	}

	public double getBoxHeight() {
		return this.boxHeight;
	}

	public void setBoxHeight(final int boxHeight) {
		this.boxHeight = boxHeight;
	}
}
